package chooongg.base.utils

import android.content.Context
import android.net.ConnectivityManager
import android.net.wifi.WifiManager
import android.telephony.TelephonyManager
import android.view.WindowManager
import android.view.inputmethod.InputMethodManager

fun Context.getInputMethodManager() =
    getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager

fun Context.getConnectivityManager() =
    getSystemService(Context.CONNECTIVITY_SERVICE) as ConnectivityManager

fun Context.getTelephonyManager() =
    getSystemService(Context.TELEPHONY_SERVICE) as TelephonyManager

fun Context.getWifiManager() =
    applicationContext.getSystemService(Context.WIFI_SERVICE) as WifiManager

fun Context.getWindowManager() =
    getSystemService(Context.WINDOW_SERVICE) as WindowManager